FROM golang:1.18

WORKDIR /bot

COPY go.mod .
COPY go.sum .

RUN go mod download

COPY . .

RUN go build -o ip-bot ./cmd/main.go

EXPOSE 8080

CMD [ "/bot/ip-bot" ]

